package service;

import dao.InstitutionalDao;
import entity.Orgnazition;

import java.util.List;

public class OrgnazitionService {


    InstitutionalDao institutionalDao = new InstitutionalDao();
    public List<Orgnazition> info(){
        return institutionalDao.info();
    }

    public int inset(Orgnazition orgnazition){
        return institutionalDao.add(orgnazition);
    }

    public Boolean name(String name){
        return institutionalDao.name(name);
    }

    public int update(int status,int id){
        return institutionalDao.update(status,id);
    }
}
